package com.lanyun.serviceimpl;/**
 * @author zhy
 * @date 2021/1/6 - 14:59
 */

import com.lanyun.dao.FunctionDao;
import com.lanyun.pojo.Function;
import com.lanyun.pojo.Privilege;
import com.lanyun.service.FunctionService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**

 @ClassName FunctionServiceImpl
 @Description xxx
 @Author zhy
 @Date 2021/1/6 - 14:59
 @Version 1.0
 **/
@Service
public class FunctionServiceImpl implements FunctionService {
    @Autowired
    FunctionDao functionDao;
    @Override
    public List<Function> findFunction(Integer pid) {//----根据权限id拿到对应的功能对象集合
        return functionDao.findFunctionById(pid);
    }
}
